<?php
class SiteController extends Controller
{
	function accessRules()
	{
		return array(
        	array('allow', 'users'=>array('*')),
		);
	}

	public function actionError()
	{
	    if($error=Yii::app()->errorHandler->error)
	        $this->render('error', $error);
	}
}